package com.yjh.study.data.structure;

public class LinkedElement<T> extends AbstractElement<T> {

    private LinkedElement<T> pre;
    private LinkedElement<T> next;

    public LinkedElement() {
    }

    public LinkedElement(T t) {
        this.data = t;
    }

    public LinkedElement<T> getPre() {
        return pre;
    }

    public void setPre(LinkedElement<T> pre) {
        this.pre = pre;
    }

    public LinkedElement<T> getNext() {
        return next;
    }

    public void setNext(LinkedElement<T> next) {
        this.next = next;
    }
}
